package com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.control;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

//import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.CreateOrUpdateSpModel;
import com.fosun.spr.core.base.CoBaseControl;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.LearnCommonRemoteService;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_articleSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_articleSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_catalogSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_catalogSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_columnSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_columnSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_fromSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_fromSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_type_parsefileSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_article_type_parsefileSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitemSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitemSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitem_catalogSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbitem_catalogSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbshopSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbshopSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_userSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_userSrModel;

@RestController
public class LearnCommonRemoteControl extends CoBaseControl {
	@Resource
	private LearnCommonRemoteService learnCommonRemoteService;

	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_user
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_user
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_user",method = RequestMethod.GET)
	public List_v2_userSrModel list_v2_user(HttpServletRequest request, List_v2_userSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_userSrModel srModel = learnCommonRemoteService.list_v2_user(spModel);
		return srModel;
	}
	
	
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_article
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_article
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_article",method = RequestMethod.GET)
	public List_v2_articleSrModel list_v2_article(HttpServletRequest request, List_v2_articleSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_articleSrModel srModel = learnCommonRemoteService.list_v2_article(spModel);
		return srModel;
	}
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_article_catalog
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_article_catalog
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_article_catalog",method = RequestMethod.GET)
	public List_v2_article_catalogSrModel list_v2_article_catalog(HttpServletRequest request, List_v2_article_catalogSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_article_catalogSrModel srModel = learnCommonRemoteService.list_v2_article_catalog(spModel);
		return srModel;
	}
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_article_column
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_article_column
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_article_column",method = RequestMethod.GET)
	public List_v2_article_columnSrModel list_v2_article_column(HttpServletRequest request, List_v2_article_columnSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_article_columnSrModel srModel = learnCommonRemoteService.list_v2_article_column(spModel);
		return srModel;
	}
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_article_from
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_article_from
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_article_from",method = RequestMethod.GET)
	public List_v2_article_fromSrModel list_v2_article_from(HttpServletRequest request, List_v2_article_fromSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_article_fromSrModel srModel = learnCommonRemoteService.list_v2_article_from(spModel);
		return srModel;
	}
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_tbitem
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_tbitem
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_tbitem",method = RequestMethod.GET)
	public List_v2_tbitemSrModel list_v2_tbitem(HttpServletRequest request, List_v2_tbitemSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_tbitemSrModel srModel = learnCommonRemoteService.list_v2_tbitem(spModel);
		return srModel;
	}
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_tbitem_catalog
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_tbitem_catalog
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_tbitem_catalog",method = RequestMethod.GET)
	public List_v2_tbitem_catalogSrModel list_v2_tbitem_catalog(HttpServletRequest request, List_v2_tbitem_catalogSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_tbitem_catalogSrModel srModel = learnCommonRemoteService.list_v2_tbitem_catalog(spModel);
		return srModel;
	}
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_article_type_parsefile
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_article_type_parsefile
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_article_type_parsefile",method = RequestMethod.GET)
	public List_v2_article_type_parsefileSrModel list_v2_article_type_parsefile(HttpServletRequest request, List_v2_article_type_parsefileSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_article_type_parsefileSrModel srModel = learnCommonRemoteService.list_v2_article_type_parsefile(spModel);
		return srModel;
	}
	/**
	 * http://127.0.0.1:8080/spr_boot_demo/api/learnCommonRemote/list_v2_tbshop
	 * http://127.0.0.1:8081/api/learnCommonRemote/list_v2_tbshop
	 * 
	 * @param request
	 * @param spModel
	 * @return
	 */	
	@RequestMapping(value = "/api/learnCommonRemote/list_v2_tbshop",method = RequestMethod.GET)
	public List_v2_tbshopSrModel list_v2_tbshop(HttpServletRequest request, List_v2_tbshopSpModel spModel) {
		//SessionUtils.fillSpModel(request, spModel);
		List_v2_tbshopSrModel srModel = learnCommonRemoteService.list_v2_tbshop(spModel);
		return srModel;
	}
		
	
	//生成成json的代码
	public static void main(String[] args) throws Exception{
	}	
}
